package com.rentong.wx.cust.domain;

import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 
 * 
 * @author zhangle
 * @email 459343178@qq.com
 * @date 2024-12-24 14:42:32
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Table(name = "cust_message_chat_log")
public class CustMessageChatLogEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 用户聊天内容的id
	 */
	@Id
	private Long chatLogId;
	/**
	 * 发送人的cust_id
	 */
	private Long senderId;
	/**
	 * 接收人的cust_id
	 */
	private Long receiverId;
	/**
	 * 1：已读；2：未读
	 */
	private Integer messageState;
	/**
	 * 已读的时间
	 */
	private Date messageTime;
	/**
	 * 1：文字；2：图片
	 */
	private Integer messageType;
	/**
	 * 聊天内容
	 */
	private String messageContent;
	/**
	 * 创建时间
	 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private Date addTime;

}
